body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.word-display h2 {
    font-size: 3em;
    color: #333;
    margin-bottom: 30px;
}

.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* 调整间距 */
    margin-bottom: 30px;
}

.control-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.control-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.control-button-container span {
    font-size: 1em;
    color: #555;
}

.icon-speaker, .icon-play {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-speaker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>');
}

.icon-play {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E91E63"><path d="M8 5v14l11-7z"/></svg>');
}

.recording-area {
    position: relative;
    width: 150px; /* Adjusted to match SVG size */
    height: 150px; /* Adjusted to match SVG size */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.record-button {
    position: relative;
    width: 80px; /* 缩小尺寸 */
    height: 80px; /* 缩小尺寸 */
    border-radius: 50%;
    background: #4CAF50; /* 改为绿色 */
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1;
}

.record-button:hover {
    transform: scale(1.05);
    background: #5cb85c;
}

.record-button.recording:hover {
    background: #d9534f;
}

.record-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.record-button.recording {
    animation: pulse 1.5s infinite;
    background: #d9534f; /* 录制时为红色 */
}

.mic-icon {
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.49 6-3.31 6-6.72h-1.7z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-shadow: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(217, 83, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 83, 79, 0);
    }
}

.progress-ring__circle--progress {
    stroke: #4CAF50;
    stroke-linecap: round;
}

.progress-ring {
    width: 150px; /* Adjusted to match SVG size */
    height: 150px; /* Adjusted to match SVG size */
    position: absolute;
    top: 0;
    left: 0;
}

.progress-ring__circle,
.progress-ring__circle--progress {
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.progress-ring__circle--progress {
    stroke-dasharray: 434; /* 2 * PI * 69 */
    stroke-dashoffset: 434;
    transition: stroke-dashoffset 3s linear;
}

.tooltip {
    position: absolute;
    top: 80%;
    left: 85%;
    transform: translateX(-50%);
    background-color: #333; /* 改为深色背景 */
    color: #fff; /* 文本颜色改为白色 */
    border: none; /* 移除边框 */
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
}

.tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    display: flex;
    align-items: center;
    gap: 15px; /* 增加元素间距 */
    margin-bottom: 8px;
}

#stopButton {
    background-color: #f44336; /* 使用更鲜艳的红色 */
    color: white;
    border: none;
    border-radius: 15px; /* 更圆的边角 */
    padding: 8px 12px; /* 调整内边距 */
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

#stopButton:hover {
    background-color: #d32f2f;
}

.tooltip-shortcut {
    font-size: 0.8em;
    color: #ccc; /* 调整为浅灰色以适应深色背景 */
    text-align: center;
}

.rating-area .star {
    font-size: 2.5em;
    color: #ccc; /* 默认显示为灰色空心 */
    cursor: default;
    padding: 0 5px;
    transition: transform 0.3s ease, color 0.3s ease;
    /* 移除 transform 和 opacity，让星星默认可见 */
}

.rating-area .star.filled {
    color: #ffd700;
    animation: star-pop 0.5s ease-out forwards;
}

@keyframes star-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* --- 请确保以下代码已被完全删除 --- */

/* @keyframes star-burst { ... } */

/* .rating-area .star.filled::before { ... } */

/* @keyframes sparks { ... } */